package com.wh.mapper;

import com.wh.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.support.SqlSessionDaoSupport;

public class UserMapper2Impl extends SqlSessionDaoSupport implements UserMapper {

    public User getUser(int id) {
        delete(3);
        int i=2/0;
        return getSqlSession().getMapper(UserMapper.class).getUser(id);
    }

    public void insert(User user) {
        getSqlSession().getMapper(UserMapper.class).insert(user);
    }

    public void delete(int id) {
        getSqlSession().getMapper(UserMapper.class).delete(id);
    }
}
